package com.wuwei.aliocr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuwei.aliocr.domain.LessonRecord;
import com.wuwei.aliocr.domain.ShangKeRiQi;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface ShangKeRiQiMapper extends BaseMapper<ShangKeRiQi> {
    ShangKeRiQi selectTheDayAfterDayByDate(Date formattedDate);

    ShangKeRiQi findTommorow(Long id);

    /**
     * 根据最后一节课和考试的日期在数据库中查询这两天之间是否还有一个工作日的方法
     * @param lastClassWorkdayDate
     * @param testWorkdayDate
     * @return
     */
    LessonRecord getWorkdayBetweenLastClassAndTestday(@Param("lastClassWorkdayDate") Date lastClassWorkdayDate, @Param("testWorkdayDate") Date testWorkdayDate);
}
